gtk4.git
7 years agogtktreeview: Use key controller on search entry handling
Carlos Garnacho [Tue, 26 Jun 2018 17:34:38 +0000 (19:34 +0200)]
gtktreeview: Use key controller on search entry handling

Use a distinct key controller so we correctly handle navigation
across matches and search cancellation. As the events are forwarded
to the search_window, those need to be pushed down the entry manually.

7 years agogtktreeview: Replace event vmethod with key controller
Carlos Garnacho [Tue, 26 Jun 2018 15:13:44 +0000 (17:13 +0200)]
gtktreeview: Replace event vmethod with key controller

7 years agogtkcombobox: Use keycontroller on GtkCellEditable implementation
Carlos Garnacho [Tue, 26 Jun 2018 13:44:13 +0000 (15:44 +0200)]
gtkcombobox: Use keycontroller on GtkCellEditable implementation

7 years agogtkentry: Use keycontroller on GtkCellEditable implementation
Carlos Garnacho [Tue, 26 Jun 2018 13:29:54 +0000 (15:29 +0200)]
gtkentry: Use keycontroller on GtkCellEditable implementation

7 years agoinspector: Use gestures/controllers for inspect button
Carlos Garnacho [Tue, 26 Jun 2018 12:56:28 +0000 (14:56 +0200)]
inspector: Use gestures/controllers for inspect button

7 years agogtkcombobox: Use controller to handle combobox keybindings in menus
Carlos Garnacho [Tue, 26 Jun 2018 11:35:26 +0000 (13:35 +0200)]
gtkcombobox: Use controller to handle combobox keybindings in menus

Instead of an ::event callback.

7 years agoMerge branch 'fix-gs-issue-404' into 'master'
Matthias Clasen [Mon, 30 Jul 2018 10:53:22 +0000 (10:53 +0000)]
Merge branch 'fix-gs-issue-404' into 'master'

window: Fallback to CSD titlebar in focus-chain

Closes gnome-software#404

See merge request GNOME/gtk!271

7 years agoMerge branch 'devel-styling' into 'master'
Matthias Clasen [Mon, 30 Jul 2018 10:49:56 +0000 (10:49 +0000)]
Merge branch 'devel-styling' into 'master'

Devel styling

See merge request GNOME/gtk!168

7 years agoAdwaita: devel style
Jakub Steiner [Fri, 11 May 2018 19:02:39 +0000 (21:02 +0200)]
Adwaita: devel style

- nightly/development versions of apps should get a styled
  headerbar.

https://gitlab.gnome.org/GNOME/gtk/merge_requests/142

7 years agowindow: Fallback to CSD titlebar in focus-chain
Andrea Azzarone [Thu, 26 Jul 2018 08:16:32 +0000 (10:16 +0200)]
window: Fallback to CSD titlebar in focus-chain

CSD titlebar are included in the focus-chain. The logic used makes sure that the
initial focus avoids the titlebar, but tabbing around will eventually get there.
This logic fails in case the window has no other focusable widgets apart from
the ones in the header-bar. If this happens keynav focus will be lost. To handle
the above scenario, we need to fallback to focus the header-bar (if any).

Fixes: https://gitlab.gnome.org/GNOME/gnome-software/issues/404
7 years agotreeview: Get rid of child surfaces
Matthias Clasen [Sun, 29 Jul 2018 13:43:00 +0000 (09:43 -0400)]
treeview: Get rid of child surfaces

Drop the drag-highlight and drag surfaces. The highlighting
is broken anyway, so just drop it for now. And for dragging
the header button, we can just position it properly, that
works just as well as this reparenting approach.

7 years agoUpdate Polish translation
Piotr Drąg [Sun, 29 Jul 2018 18:33:24 +0000 (20:33 +0200)]
Update Polish translation

7 years agoMigration guide: mention size-allocate
Matthias Clasen [Sun, 29 Jul 2018 13:10:44 +0000 (09:10 -0400)]
Migration guide: mention size-allocate

Document the new argument here.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1245
7 years agoRemove an outdated comment
Matthias Clasen [Sun, 29 Jul 2018 12:45:34 +0000 (08:45 -0400)]
Remove an outdated comment

We no longer have semi-private headers.

7 years agovulkan: fix warning from g_clear_pointer() changes
Christian Hergert [Sat, 28 Jul 2018 17:53:48 +0000 (10:53 -0700)]
vulkan: fix warning from g_clear_pointer() changes

7 years agoimwayland: fix potential leak of attr list
Christian Hergert [Sat, 28 Jul 2018 17:37:21 +0000 (10:37 -0700)]
imwayland: fix potential leak of attr list

This fixes a potential leak of a PangoAttrList that is set when chaining
up to the parent get_preedit_string(). We check to see if the attr list
was created and reuse it instead of leaking the previous value.

7 years agoUpdated Lithuanian translation
Aurimas Černius [Sat, 28 Jul 2018 17:35:20 +0000 (20:35 +0300)]
Updated Lithuanian translation

7 years agoMerge branch 'wip/gtk-menu-popup-no-more' into 'master'
Matthias Clasen [Fri, 27 Jul 2018 18:57:24 +0000 (18:57 +0000)]
Merge branch 'wip/gtk-menu-popup-no-more' into 'master'

Remove legacy GtkMenu popup APIs

See merge request GNOME/gtk!270

7 years agoMerge branch 'color-picker' into 'master'
Matthias Clasen [Fri, 27 Jul 2018 18:35:05 +0000 (18:35 +0000)]
Merge branch 'color-picker' into 'master'

Color picker

See merge request GNOME/gtk!273

7 years agotests: Update a11y tests
Matthias Clasen [Fri, 27 Jul 2018 12:42:16 +0000 (12:42 +0000)]
tests: Update a11y tests

Some things changed.

7 years agoAdd a color picker implementation for gnome-shell
Matthias Clasen [Thu, 26 Jul 2018 22:50:03 +0000 (18:50 -0400)]
Add a color picker implementation for gnome-shell

This adds a GtkColorPicker implementation that talks
to gnome-shell to get a color.

7 years agoAdd a color picker implementation for portals
Matthias Clasen [Thu, 26 Jul 2018 22:48:37 +0000 (18:48 -0400)]
Add a color picker implementation for portals

This adds a GtkColorPicker implementation that talks
to the screnshot portal to get a color.

7 years agocolor editor: Add a color picker button
Matthias Clasen [Thu, 26 Jul 2018 22:46:37 +0000 (18:46 -0400)]
color editor: Add a color picker button

The button is shown if we have a GtkColorPicker implemenation.
Currently, there are none, so the button is never shown.

7 years agoAdd a color picker interface
Matthias Clasen [Thu, 26 Jul 2018 22:45:49 +0000 (18:45 -0400)]
Add a color picker interface

This will be used in the color chooser, in subsequent commits.

7 years agotestsuite: Update the list of used icons
Matthias Clasen [Fri, 27 Jul 2018 17:37:00 +0000 (13:37 -0400)]
testsuite: Update the list of used icons

We use some more now...

7 years agoBring back gtk-orientation icons
Matthias Clasen [Fri, 27 Jul 2018 17:35:29 +0000 (13:35 -0400)]
Bring back gtk-orientation icons

These are used in the page setup dialog, so we can't
just drop them.

7 years agomenu: Remove legacy popup APIs
Jonas Ådahl [Wed, 25 Jul 2018 14:41:15 +0000 (16:41 +0200)]
menu: Remove legacy popup APIs

Remove gtk_menu_popup_for_device() and gtk_menu_popup(), as they cannot
be implemented in a portable manner by all backends. They have been
deprecated for proper alternative APIs for some time, so lets remove
them now before its too late.

While at it, fix the example documentation for mapping a menu.

7 years agotests: Stop using legacy gtk_menu_popup API
Jonas Ådahl [Wed, 25 Jul 2018 14:39:53 +0000 (16:39 +0200)]
tests: Stop using legacy gtk_menu_popup API

Use the new portable APIs, so that menus will be positioned properly on
all backends.

7 years agoFix up the resource generation for icons
Matthias Clasen [Fri, 27 Jul 2018 13:02:18 +0000 (09:02 -0400)]
Fix up the resource generation for icons

The script was looking in the wrong subdirectories.

7 years agoAdd emoji category icons
Matthias Clasen [Fri, 27 Jul 2018 11:56:56 +0000 (11:56 +0000)]
Add emoji category icons

This is a temporary measure to make the check-icon-names
test not fail in ci. We still have to figure out the best
way to include a core icontheme with GTK+.

7 years agoKeep picking up icons as resources
Matthias Clasen [Fri, 27 Jul 2018 11:16:44 +0000 (07:16 -0400)]
Keep picking up icons as resources

We may need to revisit this at some point. For now,
keep the mechanism in place.

This is a partial revert of 806c659efe3a8f2ebc4a5201f7152636edf3bb49.

7 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 27 Jul 2018 11:40:20 +0000 (13:40 +0200)]
Updated Spanish translation

7 years agotestsuite: Sort icon names
Matthias Clasen [Fri, 27 Jul 2018 11:11:51 +0000 (07:11 -0400)]
testsuite: Sort icon names

This is easier to keep track of.

7 years agoMerge branch 'patch-1' into 'master'
Timm Bäder [Fri, 27 Jul 2018 04:47:04 +0000 (04:47 +0000)]
Merge branch 'patch-1' into 'master'

doc: Fix there/their typo

See merge request GNOME/gtk!274

7 years agodoc: Fix there/their typo
Alcaro [Fri, 27 Jul 2018 02:28:45 +0000 (02:28 +0000)]
doc: Fix there/their typo

7 years agoMerge branch 'g-clear-pointer-propagate' into 'master'
Timm Bäder [Thu, 26 Jul 2018 07:34:12 +0000 (07:34 +0000)]
Merge branch 'g-clear-pointer-propagate' into 'master'

Remove GDestroyNotify casts in g_clear_pointer() uses

See merge request GNOME/gtk!269

7 years agoMerge branch 'xfixes-timestamp' into 'master'
Matthias Clasen [Wed, 25 Jul 2018 11:21:01 +0000 (11:21 +0000)]
Merge branch 'xfixes-timestamp' into 'master'

x11: Ignore old XFixesSelectionNotify events

Closes #14

See merge request GNOME/gtk!259

7 years agoRemove GDestroyNotify casts in g_clear_pointer() uses
Ernestas Kulik [Wed, 25 Jul 2018 07:00:09 +0000 (10:00 +0300)]
Remove GDestroyNotify casts in g_clear_pointer() uses

GLib master propagates argument types in g_clear_pointer(), which causes
the usual function pointer casts to GDestroyNotify to trip compiler
warnings. Additionally, this commit changes some cleanup functions where
appropriate (wl_data_source_destroy ->
gtk_primary_selection_source_destroy for struct
gtk_primary_selection_source).

7 years agorender: Make gtk_render_icon() use the snapshot API
Benjamin Otte [Tue, 24 Jul 2018 18:23:20 +0000 (20:23 +0200)]
render: Make gtk_render_icon() use the snapshot API

This removes a lot of duplicated code.

7 years agorender: Make gtk_render_frame() and gtk_render_focus() use the snapshot API
Benjamin Otte [Tue, 24 Jul 2018 17:50:19 +0000 (19:50 +0200)]
render: Make gtk_render_frame() and gtk_render_focus() use the snapshot API

This removes a lot of duplicated code.

7 years agoAPI: Remove gtk_render_frame_gap()
Benjamin Otte [Tue, 24 Jul 2018 17:38:17 +0000 (19:38 +0200)]
API: Remove gtk_render_frame_gap()

That function does not make sense at all in a CSS world. So better don't
support it anymore.

7 years agorender: Make gtk_render_background() use the snapshot API
Benjamin Otte [Sat, 14 Jul 2018 19:53:29 +0000 (21:53 +0200)]
render: Make gtk_render_background() use the snapshot API

This removes a lot of duplicated code.

7 years agorender: Make gtk_render_check/arrow/handle() use the snapshot API
Benjamin Otte [Sat, 14 Jul 2018 19:24:42 +0000 (21:24 +0200)]
render: Make gtk_render_check/arrow/handle() use the snapshot API

This removes a lot of duplicated code.

7 years agorender: Make gtk_render_layout() use the snapshot API
Benjamin Otte [Sat, 14 Jul 2018 18:21:15 +0000 (20:21 +0200)]
render: Make gtk_render_layout() use the snapshot API

This removes a lot of duplicated code.

7 years agotestsuite: Fix DragContext => Drag renaming
Benjamin Otte [Sat, 14 Jul 2018 17:02:42 +0000 (19:02 +0200)]
testsuite: Fix DragContext => Drag renaming

7 years agogtk: Move GtkGesture declaration to gtktypes.h
Benjamin Otte [Fri, 29 Jun 2018 02:48:10 +0000 (04:48 +0200)]
gtk: Move GtkGesture declaration to gtktypes.h

That way, headers can use the gesture type without having to include
gtkgesture.h

7 years agodocs: Remove remains of Mir backend
Benjamin Otte [Fri, 22 Jun 2018 16:53:59 +0000 (18:53 +0200)]
docs: Remove remains of Mir backend

7 years agobroadway: Remove unused variable
Benjamin Otte [Tue, 24 Jul 2018 18:55:16 +0000 (20:55 +0200)]
broadway: Remove unused variable

7 years agoUpdate Romanian translation
Daniel Șerbănescu [Tue, 24 Jul 2018 18:09:59 +0000 (18:09 +0000)]
Update Romanian translation

7 years agoMerge branch 'nirbheek/misc-meson-fixes' into 'master'
Nirbheek Chauhan [Tue, 24 Jul 2018 08:29:34 +0000 (08:29 +0000)]
Merge branch 'nirbheek/misc-meson-fixes' into 'master'

Fix broadway backend build and graphene as a subproject

Closes #1197 and #1218

See merge request GNOME/gtk!265

7 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 24 Jul 2018 08:03:20 +0000 (10:03 +0200)]
Updated Spanish translation

7 years agoMerge branch 'just-popover-menu-things' into 'master'
Timm Bäder [Mon, 23 Jul 2018 18:55:55 +0000 (18:55 +0000)]
Merge branch 'just-popover-menu-things' into 'master'

Post-gizmo GtkPopoverMenu fixes

See merge request GNOME/gtk!264

7 years agomeson: Update pango and gdk-pixbuf wrap locations
Nirbheek Chauhan [Mon, 23 Jul 2018 14:44:27 +0000 (20:14 +0530)]
meson: Update pango and gdk-pixbuf wrap locations

See: https://gitlab.gnome.org/GNOME/gtk/issues/1219

7 years agomeson: Support graphene as a fallback dependency
Nirbheek Chauhan [Fri, 6 Jul 2018 18:53:06 +0000 (00:23 +0530)]
meson: Support graphene as a fallback dependency

Don't assume graphene_dep is always a pkg-config dependency.

Closes https://gitlab.gnome.org/GNOME/gtk/issues/1197

7 years agomeson: libgdk-broadway.a depends on broadwayjs.h
Nirbheek Chauhan [Mon, 23 Jul 2018 11:49:31 +0000 (17:19 +0530)]
meson: libgdk-broadway.a depends on broadwayjs.h

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1218

Also fix another dependency error I found.

7 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 23 Jul 2018 10:10:24 +0000 (12:10 +0200)]
Updated Spanish translation

7 years agotestpopover: Don’t set margin in menu box
Ernestas Kulik [Mon, 23 Jul 2018 10:05:57 +0000 (13:05 +0300)]
testpopover: Don’t set margin in menu box

The gizmo already provides sufficient padding.

7 years agogtkpopovermenu: Conditionally chain up in gtk_popover_menu_add()
Ernestas Kulik [Mon, 23 Jul 2018 10:01:01 +0000 (13:01 +0300)]
gtkpopovermenu: Conditionally chain up in gtk_popover_menu_add()

Otherwise the stack gets parented to the wrong widget and the contents
are never drawn.

7 years agogtkpopovermenu: Drop call to gtk_widget_show()
Ernestas Kulik [Mon, 23 Jul 2018 10:00:11 +0000 (13:00 +0300)]
gtkpopovermenu: Drop call to gtk_widget_show()

The stack is already visible.

7 years agoDrop builtin icon test
Matthias Clasen [Sun, 22 Jul 2018 17:16:20 +0000 (17:16 +0000)]
Drop builtin icon test

We don't have these icons anymore.

7 years agox11: Ignore old XFixesSelectionNotify events
Jason Crain [Sat, 21 Jul 2018 09:17:57 +0000 (04:17 -0500)]
x11: Ignore old XFixesSelectionNotify events

GtkEntryCompletion can rapidly release and claim ownership of the
primary selection. This generates multiple XFixesSelectionNotify events,
first stating that no one owns the selection, then another stating that
we own the selection. The notification that no one owns the selection
causes GtkEntryCompletion to deselect the text, breaking inline
autocompletion.

This fixes it by ignoring any XFixesSelectionNotify with a timestamp
earlier than our clipboard timestamp.

Fixes #14

7 years agoUpdate British English translation
Bruce Cowan [Sat, 21 Jul 2018 11:08:03 +0000 (11:08 +0000)]
Update British English translation

7 years agoMerge branch 'wip/muktupavels/remove-gtk-css-provider-get-default' into 'master'
Benjamin Otte [Fri, 20 Jul 2018 14:03:51 +0000 (14:03 +0000)]
Merge branch 'wip/muktupavels/remove-gtk-css-provider-get-default' into 'master'

gtkcssprovider: remove gtk_css_provider_get_default

See merge request GNOME/gtk!256

7 years agoci: add hicolor-icon-theme to the docker image
Christoph Reiter [Fri, 20 Jul 2018 13:01:29 +0000 (15:01 +0200)]
ci: add hicolor-icon-theme to the docker image

The tests complain about it, not sure if this helps.

7 years agoDrop unused old icons
Matthias Clasen [Fri, 20 Jul 2018 10:53:08 +0000 (06:53 -0400)]
Drop unused old icons

We don't need to ship the deprecated old stock-id named
icons and the drag cursors - we don't use them from resources
anyway.

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 20 Jul 2018 11:18:15 +0000 (11:18 +0000)]
Update Turkish translation

7 years agoEmoji chooser: Also check for hex boxes
Matthias Clasen [Thu, 19 Jul 2018 21:57:19 +0000 (17:57 -0400)]
Emoji chooser: Also check for hex boxes

We don't want to see those either.

7 years agomoji chooser: Try harder to avoid fallback
Matthias Clasen [Thu, 19 Jul 2018 21:50:54 +0000 (17:50 -0400)]
moji chooser: Try harder to avoid fallback

We don't want to see any fallback rendering.
The current check was still letting some fallback
combinations through.

Based on work by Julian Sparber.

7 years agoQuiet a compiler warning
Matthias Clasen [Thu, 19 Jul 2018 21:31:20 +0000 (17:31 -0400)]
Quiet a compiler warning

We don't need to handle GDK_CONFIGURE here, so make the
compiler not warn about it.

7 years agotestsuite: Add emoji icon names
Matthias Clasen [Thu, 19 Jul 2018 21:24:54 +0000 (17:24 -0400)]
testsuite: Add emoji icon names

We check for all icon names that are used in gtk.

7 years agoEmoji chooser: Use icons for sections
Matthias Clasen [Thu, 19 Jul 2018 21:24:11 +0000 (17:24 -0400)]
Emoji chooser: Use icons for sections

This is more reliable than using text-style Emoji
which may not be present.

Based on work by Julian Sparber.

7 years agoMerge branch 'master' into 'master'
Matthias Clasen [Thu, 19 Jul 2018 18:06:25 +0000 (18:06 +0000)]
Merge branch 'master' into 'master'

widgetfactory: add separator tool item to presentation

See merge request GNOME/gtk!249

7 years agoMerge branch 'content-provider-autoptr' into 'master'
Matthias Clasen [Thu, 19 Jul 2018 18:04:24 +0000 (18:04 +0000)]
Merge branch 'content-provider-autoptr' into 'master'

gdk: Add auto cleanup func for GdkContentProvider

See merge request GNOME/gtk!251

7 years agoMerge branch 'content-provider-docs' into 'master'
Matthias Clasen [Thu, 19 Jul 2018 17:46:36 +0000 (17:46 +0000)]
Merge branch 'content-provider-docs' into 'master'

docs: Fix GdkContentProvider documentation

See merge request GNOME/gtk!254

7 years agodocs: Fix GdkContentProvider documentation
Ernestas Kulik [Thu, 19 Jul 2018 17:05:19 +0000 (20:05 +0300)]
docs: Fix GdkContentProvider documentation

Currently it’s lacking properties, signals and class vfuncs.

7 years agogtkcssprovider: remove gtk_css_provider_get_default
Alberts Muktupāvels [Thu, 19 Jul 2018 16:14:26 +0000 (19:14 +0300)]
gtkcssprovider: remove gtk_css_provider_get_default

This function is unused since cdc6e8272020 commit and does not
contain fallback style.

https://gitlab.gnome.org/GNOME/gtk/issues/1226

7 years agoMerge branch 'content-deserializer-fixes' into 'master'
Benjamin Otte [Thu, 19 Jul 2018 13:59:21 +0000 (13:59 +0000)]
Merge branch 'content-deserializer-fixes' into 'master'

Content deserializer fixes

See merge request GNOME/gtk!252

7 years agogdk: contentdeserializer: Fix deserializer not returning
Ernestas Kulik [Thu, 19 Jul 2018 12:55:58 +0000 (15:55 +0300)]
gdk: contentdeserializer: Fix deserializer not returning

file_uri_deserializer does not return on success, only on failure. This
commit fixes clipboard reads never finishing for some types.

7 years agogdk: contentdeserializer: Fix stream usage
Ernestas Kulik [Thu, 19 Jul 2018 12:53:08 +0000 (15:53 +0300)]
gdk: contentdeserializer: Fix stream usage

file_uri_deserializer splices a memory stream, as opposed to
string_deserializer, which uses a converter and filter stream. This
commit fixes erroneous use of GMemoryOutputStream as
GFilterOutputStream.

7 years agogdk: Add auto cleanup func for GdkContentProvider
Ernestas Kulik [Thu, 19 Jul 2018 08:28:21 +0000 (11:28 +0300)]
gdk: Add auto cleanup func for GdkContentProvider

7 years agodocs: Small updates to the migration guide
Matthias Clasen [Thu, 19 Jul 2018 00:22:18 +0000 (20:22 -0400)]
docs: Small updates to the migration guide

Mention that event controllers are available in 3.x, amongst others.

7 years agoMerge branch 'places-sidebar-dnd' into 'master'
Matthias Clasen [Wed, 18 Jul 2018 00:23:08 +0000 (00:23 +0000)]
Merge branch 'places-sidebar-dnd' into 'master'

placessidebar: Take a GdkDrag in _set_drop_targets_visible()

Closes #1220

See merge request GNOME/gtk!247

7 years agowidgetfactory: add separator tool item to presentation
Günther Wutz [Tue, 17 Jul 2018 19:50:19 +0000 (21:50 +0200)]
widgetfactory: add separator tool item to presentation

7 years agoplacessidebar: Take a GdkDrag in _set_drop_targets_visible()
Ernestas Kulik [Tue, 17 Jul 2018 06:31:54 +0000 (09:31 +0300)]
placessidebar: Take a GdkDrag in _set_drop_targets_visible()

Since the function is usually called from GtkWidget::drag-{begin,end} handlers,
taking a GdkDrop does not work, especially given that
::drag-action-requested is emitted without checking the type.

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1220

7 years agogesturestylus: Clarify a documentation comment
Timm Bäder [Tue, 17 Jul 2018 15:33:09 +0000 (17:33 +0200)]
gesturestylus: Clarify a documentation comment

Use the proper gtkdoc syntax for signals.

7 years agoRemove icon extents API
Timm Bäder [Sun, 15 Jul 2018 16:52:48 +0000 (18:52 +0200)]
Remove icon extents API

7 years agowidget: Remove another ->priv usage
Timm Bäder [Sun, 15 Jul 2018 16:09:48 +0000 (18:09 +0200)]
widget: Remove another ->priv usage

7 years agosizerequest: Pull locals into closest scope
Timm Bäder [Sun, 15 Jul 2018 16:08:30 +0000 (18:08 +0200)]
sizerequest: Pull locals into closest scope

7 years agoCorrectly mark an enum value in a doc comment
Timm Bäder [Sun, 15 Jul 2018 16:02:47 +0000 (18:02 +0200)]
Correctly mark an enum value in a doc comment

7 years agosizerequest: Only check reported baselines if requested
Timm Bäder [Sun, 15 Jul 2018 15:56:11 +0000 (17:56 +0200)]
sizerequest: Only check reported baselines if requested

If the passed-in store locations for the baselines are NULL anyway, we
don't need to check the reported baselines for correctness.

7 years agogl renderer: Pull a few declarations into the closest scope
Timm Bäder [Sun, 15 Jul 2018 15:52:34 +0000 (17:52 +0200)]
gl renderer: Pull a few declarations into the closest scope

7 years agoRemove GTK_CSS_AFFECTS_CLIP
Timm Bäder [Sun, 15 Jul 2018 15:51:47 +0000 (17:51 +0200)]
Remove GTK_CSS_AFFECTS_CLIP

Clips don't exist anymore and this flag is unused outside of the style
property definitions in gtkcssstylepropertyimpl.c

7 years agowindow: Don't queue an allocate if the css clip changes
Timm Bäder [Sun, 15 Jul 2018 15:42:56 +0000 (17:42 +0200)]
window: Don't queue an allocate if the css clip changes

clips don't exist anymore.

7 years agoGskRoundedRect: Typo
Timm Bäder [Sun, 15 Jul 2018 05:25:37 +0000 (07:25 +0200)]
GskRoundedRect: Typo

7 years agogl renderer: Use a GArray for the shadow cache
Timm Bäder [Sun, 15 Jul 2018 05:23:18 +0000 (07:23 +0200)]
gl renderer: Use a GArray for the shadow cache

It's very small usually, in default Adwaita the only blurred outset
shadow we have is the one for the CSD'd toplevel window.

7 years agoAvoid a g_object_get path
Timm Bäder [Sat, 14 Jul 2018 09:26:00 +0000 (11:26 +0200)]
Avoid a g_object_get path

We can use gdk_device_get_n_axes instead and will get the same result.

7 years agodocs: Fix scroll and motion controller titles
Timm Bäder [Sun, 8 Jul 2018 20:08:07 +0000 (22:08 +0200)]
docs: Fix scroll and motion controller titles

Controller, not Controler.

7 years agoMerge branch 'legacy-gl' into 'master'
Emmanuele Bassi [Tue, 17 Jul 2018 11:07:27 +0000 (11:07 +0000)]
Merge branch 'legacy-gl' into 'master'

fix the OpenGL renderer for legacy contexts

See merge request GNOME/gtk!240

7 years agoUpdate POTFILES.in
Piotr Drąg [Mon, 16 Jul 2018 14:35:52 +0000 (16:35 +0200)]
Update POTFILES.in

7 years agoHandle configure events in gdk
Matthias Clasen [Mon, 16 Jul 2018 00:11:56 +0000 (20:11 -0400)]
Handle configure events in gdk

The previous attempt at removing configure events entirely
was causing some dialogs not to show up under Wayland.
Presumably due to ordering issues with emitting ::size-change
out of the backend.

Instead, keep configure events in the event queue, but handle
them on the gdk side. This keeps the ordering intact, while
still removing configure events from the api. The dialogs
show up now.